import { createApp } from 'vue'
import App from './App.vue'
// 引入ElementPlus和对应的css
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 引入ElementPlus的图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//  导入路由
import router from './router/index.js'

let app = createApp(App);
// 注册elementPlus
app.use(ElementPlus)
// 注册ElementPlus的图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(router);
//app.component("editor", Editor)
app.mount('#app')